//
//  RXBAlertView.h
//  RXBAlertView-master
//
//  Created by Mac on 2018/12/6.
//  Copyright © 2018年 johnren. All rights reserved.
//

/**自定义我们的alertView*/

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
/**定义两个block*/
typedef void(^cancelButtonBlock)(void);
typedef void(^sureButtonBlock)(void);
typedef enum{
    Modedefault
}VIEWMODE;
@interface RXBAlertView : UIView
/**点击取消进行的回掉函数*/
@property(nonatomic,copy)cancelButtonBlock cancelBlock;
/**点击确定进行的回掉*/
@property(nonatomic,copy)sureButtonBlock sureBlock;
/**初始化方法*/
/**
 *title:AlertView标题
 *content:AlertView内容
 *mode:AlertView的样式
 *sureButtonTitle:确定按钮的标题
 *cancelButtonTitle:取消按钮标题
 *sureButtonBlock:确定按钮的回掉
 *cancelButtonBlock:取消按钮的回掉
 */
-(instancetype)initWithFrame:(CGRect)frame title:(NSString *)title content:(NSString *)content mode:(VIEWMODE)mode sureButtonTitle:(NSString *)sureButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle sureButtonBlock:(void(^)(void))sureButtonBlock cancelButtonBlock:(void(^)(void))cancelBlock;
/**隐藏*/
-(void)hide;
/**显示*/
-(void)show;

@end

NS_ASSUME_NONNULL_END
